       {$CLEO .cm}
       $onmission = 1


$music = audiostream.Load("xcleo\battle_maps\.mp3")
01F0: set_max_wanted_level_to 0
0110: clear_player $PLAYER_CHAR wanted_level

$actor_sweet = 1
$actor_smoke = 0     //player 2
$actor_ryder = 0     //player 1
730@ = 0
$Sweet_Car = 0
const
SET_TIME = 780@
SET_PEDS = 781@
SET_LUIGI = 782@
SET_AI = 783@
SET_LIVES = 784@
SET_MUSIC = 785@
SET_modes = 786@
set_day = 788@
weather = 789@

end                
$Actor_Truth = 999999999999
SET_TIME = 0
SET_PEDS = 0
SET_LUIGI = 0
SET_AI = 0
SET_LIVES = 0
SET_MUSIC = 0
SET_modes = 0
set_day = 0
weather = 0  
:setup
////set_camera_position  4090.7122 -980.6513 40.7088 rotation 0.0 0.0 0.0
//// set_camera_point_at  4090.1384 -955.6574 36.7088 switchstyle 2

wait 700
//048F: actor $PLAYER_ACTOR remove_weapons

if 
056D:   actor $second_PLAYER_ACTOR defined

then
//048F: actor $second_PLAYER_ACTOR remove_weapons

end
$Actor_Catalina = 0
0826: enable_hud 0
0581: enable_radar 0
00C0: set_current_time 8 0
01B6: weather 0


01B5: force_weather 0
0ACB: show_styled_text "Play anywhere in San Andreas" time 1000 style 2

//$menu = audiostream.Load("cleo\battle_maps\menu.mp3")
//audiostream.PerformAction($menu , play)
//audiostream.Loop($menu, 1)
//////set_camera_position   3699.6328 -1177.66 1636.668 rotation 0.0 0.0 0.0
////// set_camera_point_at  3710.4158 -1145.4374 1633.668 switchstyle 2
player.CanMove(0) = false
0ADF: add_dynamic_GXT_entry "setmap" text "~w~2-Player Setup"      //Multiplayer
0ADF: add_dynamic_GXT_entry "helpap2" text "Nevagate ~u~/~d~ for the options. ~y~Note: Doesn't work for interiors."
0ADF: add_dynamic_GXT_entry "set01" text "Set Time"
0ADF: add_dynamic_GXT_entry "set02" text "Peds & Cars"
0ADF: add_dynamic_GXT_entry "set03" text "Luigi Bomb Trap"
0ADF: add_dynamic_GXT_entry "set04" text "AIs"
0ADF: add_dynamic_GXT_entry "set05" text "Set Luigi Spotted Distance"
0ADF: add_dynamic_GXT_entry "set06" text "Set Music"
0ADF: add_dynamic_GXT_entry "set07" text "Time of Day"
0ADF: add_dynamic_GXT_entry "set08" text "Weather"
0ADF: add_dynamic_GXT_entry "set09" text "Start Game"
0ADF: add_dynamic_GXT_entry "set10" text "PREVIOUS MUSIC"
0ADF: add_dynamic_GXT_entry "set11" text "NEXT MUSIC"
0ADF: add_dynamic_GXT_entry "set12" text "Start Game"
0ADF: add_dynamic_GXT_entry "SLOT00" text "~y~Track Slot ~w~~n~~1~"
0ADF: add_dynamic_GXT_entry "NEXT002" text "Next -->"
0ADF: add_dynamic_GXT_entry "PREVER" text "<-- Previous"



0512: show_permanent_text_box 'helpap2'  //// show_permanent_text_box 'dummy' 
08D4: 510@ = create_panel_with_title 'dummy' position  340.0  120.0 width  240.0 columns  1 interactive  1 background  1 alignment  0
08DB: set_panel 510@ column  0 header 'setmap' data 'set01' 'set02' 'set03' 'set04' 'set05' 'set06' 'set07' 'set08' 'set09' 'dummy' 'dummy' 'set12'
090E: set_panel 510@ active_row  0
01B4: set_player $PLAYER_CHAR can_move 0
03BF: set_player $PLAYER_CHAR ignored_by_everyone 1
//0512: set_panel 510@ row 3 enable 0
//0512: set_panel 510@ row 2 enable 0
//0512: set_panel 510@ row 7 enable 0
//08D9: set_panel 510@ row 4 enable 0
//08D9: set_panel 510@ row 7 enable 0
//08D9: set_panel 510@ row 0 enable 0
:set_Menu_1
wait  0
if
0256:   player $PLAYER_CHAR defined
jf @set_Menu_21
if
00E1:   key_pressed  0  15//--- key = Enter/Exit
jf @set_Menu_2
0ACD: show_text_highpriority "Disabled!" time 3000
jump @set_Menu_1
jump @set_Menu_21//--jump to menue exit

:set_Menu_2
if
00E1:   key_pressed  0  16//--- key = Ped SPRINT
jf @set_Menu_1
03E6: remove_text_box
08D7: 512@ = panel 510@ active_row//-- submit number of the highlighted button into variable
if 
////
0039:   512@ ==  0  // integer values
jf @set_Menu_3      
//0A94: start_custom_mission "setd_mode\zombie_horde_only" 

SET_TIME += 1

if
SET_TIME == 6
then
0ACD: show_text_highpriority "500 Seconds" time 3000
$Actor_Truth = 500
wait 300
end
if
SET_TIME == 1
then
0ACD: show_text_highpriority "60 Seconds" time 3000
$Actor_Truth = 60
wait 300
end
if
SET_TIME == 2
then
0ACD: show_text_highpriority "100 Seconds" time 3000
$Actor_Truth = 100
wait 300
end
if
SET_TIME == 3
then
0ACD: show_text_highpriority "300 Seconds" time 3000
$Actor_Truth = 300
wait 300
end
if
SET_TIME == 4
then
0ACD: show_text_highpriority "500 Seconds" time 3000
$Actor_Truth = 500
wait 300
end
if
SET_TIME == 5
then
0ACD: show_text_highpriority "1000 Seconds" time 3000
$Actor_Truth = 1000
wait 300
end
if
SET_TIME == 6
then
0ACD: show_text_highpriority "Infinite" time 3000
$Actor_Truth = 9999999999999
wait 300
end
if
SET_TIME >= 7
then
SET_TIME = 1
wait 300
end


:set_Menu_3
if  
////
0039:   512@ ==  1  // integer values
jf @set_Menu_4
//wait 300
SET_PEDS += 1
if
SET_PEDS == 0
then
0ACD: show_text_highpriority "Cars only" time 3000
wait 300
end
if
SET_PEDS == 1
then
0ACD: show_text_highpriority "Peds & Cars" time 3000
wait 300
end
if
SET_PEDS == 2
then
0ACD: show_text_highpriority "Cars only" time 3000
wait 300
end
if
SET_PEDS == 3
then
0ACD: show_text_highpriority "Peds only" time 3000
wait 300
end
if
SET_PEDS == 4
then
0ACD: show_text_highpriority "Ghost Town" time 3000
wait 300
end
if
SET_PEDS >= 5
then
0ACD: show_text_highpriority "Peds & Cars" time 3000

SET_PEDS = 1
wait 300
end
:set_Menu_4
if   
0039:   512@ ==  2  // integer values
jf @set_Menu_5
SET_LUIGI  += 1
if
SET_LUIGI == 0
then
0ACD: show_text_highpriority "No Luigi's" time 3000
wait 300
end
if
SET_LUIGI == 1
then
0ACD: show_text_highpriority "Single Luigi" time 3000
wait 300
end
if
SET_LUIGI == 2
then
0ACD: show_text_highpriority "Just only 2 Luigi's" time 3000
wait 300
end
if
SET_LUIGI == 3
then
0ACD: show_text_highpriority "Make Triple Luigi's" time 3000
wait 300
end
if
SET_LUIGI == 4
then
0ACD: show_text_highpriority "3+3 Luigi's add to 6" time 3000
wait 300
end
if
SET_LUIGI == 5
then
0ACD: show_text_highpriority "Holy! That's 10 Luigi's!" time 3000
wait 300
end
if
SET_LUIGI == 6
then
0ACD: show_text_highpriority "Bunch of Luigi's will Hunt you!" time 3000
wait 300
end
if
SET_LUIGI == 7
then
0ACD: show_text_highpriority "Holy shit! This is gotta be exetreme insane!" time 3000
wait 300
end
if
SET_LUIGI >= 8
then
0ACD: show_text_highpriority "Off" time 3000
SET_LUIGI = 0
wait 300
end
:set_Menu_5
if 
0039:   512@ ==  3  // integer values
jf @set_Menu_6


SET_AI = 0
:set_Menu_6
if 
0039:   512@ ==  4  // integer values
jf @set_Menu_7
SET_LIVES += 1 
if
SET_LIVES == 0
then
$Sweet_Car = 1
0ACD: show_text_highpriority "Luigi chase you when someone is spotting exetremely far distance." time 3000
wait 300
end
if
SET_LIVES == 1
then
$Sweet_Car = 2
0ACD: show_text_highpriority "Luigi chase you instantly." time 3000
wait 300
end
if
SET_LIVES == 2
then
$Sweet_Car = 0
0ACD: show_text_highpriority "Luigi chase at normal distane when spotted." time 3000
wait 300
end
if
SET_LIVES >= 3
then
SET_LIVES = 0
//$Sweet_Car = 0
$Sweet_Car = 1
0ACD: show_text_highpriority "Luigi chase you when someone is spotting exetremely far distance." time 3000

wait 300
end
:set_Menu_7
if 
0039:   512@ ==  5  // integer values
jf @set_Menu_8
SET_MUSIC  += 1
if
SET_MUSIC == 0
then
audiostream.Release($music)
$music = audiostream.Load("xcleo\battle_maps\.mp3")

0ACD: show_text_highpriority "No Music" time 3000
wait 300
end
if
SET_MUSIC == 1
then
audiostream.Release($music)
$music = audiostream.Load("cleo\battle_maps\music_remember_meHIPHOP.mp3")
audiostream.Loop($music,1)
audiostream.PerformAction($music,play)
0ACD: show_text_highpriority "Aljir Prison" time 3000
wait 300
end
if
SET_MUSIC == 2
then
audiostream.Release($music)
$music = audiostream.Load("cleo\battle_maps\hiphopINTFOIV.mp3")
audiostream.Loop($music,1)
audiostream.PerformAction($music,play)
0ACD: show_text_highpriority "Destroy Subway" time 3000
wait 300
end
if
SET_MUSIC == 3
then
audiostream.Release($music)
$music = audiostream.Load("cleo\battle_maps\oldmanMUSIC.mp3")
audiostream.Loop($music,1)
audiostream.PerformAction($music,play)
0ACD: show_text_highpriority "Industrail District" time 3000
wait 300
end
if
SET_MUSIC == 4
then
audiostream.Release($music)
$music = audiostream.Load("cleo\battle_maps\sproutv4.mp3")
audiostream.Loop($music,1)
audiostream.PerformAction($music,play)
0ACD: show_text_highpriority "Aljir Prison Escape" time 3000
wait 300
end
if
SET_MUSIC == 5
then
audiostream.Release($music)
$music = audiostream.Load("cleo\battle_maps\sproutv5.mp3")
audiostream.Loop($music,1)
audiostream.PerformAction($music,play)
0ACD: show_text_highpriority "The Fortress" time 3000
wait 300
end                                                    
if
SET_MUSIC == 6
then
audiostream.Release($music)
$music = audiostream.Load("cleo\battle_maps\MysticCaveZone.mp3")
audiostream.Loop($music,1)
audiostream.PerformAction($music,play)
0ACD: show_text_highpriority "Haven City Battle" time 3000
wait 300
end
if
SET_MUSIC == 7
then
audiostream.Release($music)
$music = audiostream.Load("cleo\battle_maps\casino_sonic2.mp3")
audiostream.Loop($music,1)
audiostream.PerformAction($music,play)
0ACD: show_text_highpriority "Gun Course" time 3000
wait 300
end                                      
if
SET_MUSIC == 8
then
audiostream.Release($music)
$music = audiostream.Load("cleo\battle_maps\5900.mp3")
audiostream.Loop($music,1)
audiostream.PerformAction($music,play)
0ACD: show_text_highpriority "Tank Trouble" time 3000
wait 300
end
if
SET_MUSIC >= 9
then
SET_MUSIC = 0
audiostream.Release($music)
$music = audiostream.Load("xcleo\battle_maps\x.mp3")

0ACD: show_text_highpriority "No Music" time 3000
wait 300
end
:set_Menu_8
if   
0039:   512@ ==  6  // integer values
jf @set_Menu_9
set_day += 1
if
set_day == 0
then
00C0: set_current_time 8 0
0ACD: show_text_highpriority "Morning" time 3000   //X

wait 300
end
if
set_day == 1
then
00C0: set_current_time 5 0
0ACD: show_text_highpriority "Morning" time 3000

wait 300
end
if
set_day == 2
then
00C0: set_current_time 12 0
0ACD: show_text_highpriority "Day" time 3000

wait 300
end
if
set_day == 3
then
00C0: set_current_time 20 0
0ACD: show_text_highpriority "Evening" time 3000

wait 300
end
if
set_day == 4
then
00C0: set_current_time 22 0
0ACD: show_text_highpriority "Midnight" time 3000

wait 300
end
if
set_day == 5
then
00C0: set_current_time 2 0
0ACD: show_text_highpriority "Night" time 3000

wait 300
end
if
set_day >= 6
then
set_day = 1

wait 300
end
:set_Menu_9
if
0039:   512@ ==  7  // integer values
jf @set_Menu_10
weather += 1
if
weather == 0
then
set_weather = 10
01B5: force_weather 10
0ACD: show_text_highpriority "Clear Skies" time 3000   //X

wait 300
end
if
weather == 1
then
set_weather = 32
01B5: force_weather 32
0ACD: show_text_highpriority "Slighty Clear Skies" time 3000   //X

wait 300
end
if
weather == 2
then
set_weather = 9
01B5: force_weather 9
0ACD: show_text_highpriority "Foggy" time 3000   //X

wait 300
end
if
weather == 3
then
set_weather = 63
01B5: force_weather 63
0ACD: show_text_highpriority "Slighty Foggy" time 3000   //X

wait 300
end
if
weather == 4
then
set_weather = 78
01B5: force_weather 78
0ACD: show_text_highpriority "Foggy Blue" time 3000   //X

wait 300
end
if
weather == 5
then
set_weather = 97
01B5: force_weather 97
0ACD: show_text_highpriority "Clear Skies Dark" time 3000   //X

wait 300
end
if
weather == 6
then
set_weather = 111
01B5: force_weather 111
0ACD: show_text_highpriority "Dusky" time 3000   //X

wait 300
end
if
weather == 7
then
set_weather = 164
01B5: force_weather 164
0ACD: show_text_highpriority "Clear Skies Pink" time 3000   //X

wait 300
end

if
weather >= 8
then
weather = 0
wait 300
end


:set_Menu_10
if
0039:   512@ ==  8  // integer values
jf @set_Menu_11
////create_custom_thread "spawn_stuff\set\broken1.cs"
////create_custom_thread "spawn_stuff\set\broken2.cs"
////create_custom_thread "spawn_stuff\set\broken3.cs"
08DA: remove_panel 510@
03E6: remove_text_box
player.CanMove(0) = true
0826: enable_hud 1
0581: enable_radar 1
fade 0 500
wait 500
fade 1 500
jump @start_game
//wait 300

:set_Menu_11
if
0039:   512@ ==  9  // integer values
jf @set_Menu_12       
//// -= 1
//



:set_Menu_12
if 
//
0039:   512@ ==  10  // integer values
jf @set_Menu_13
//// += 1
//


:set_Menu_13
if
//
0039:   512@ ==  11  // integer values
jf @set_Menu_1          //release
01B4: set_player $PLAYER_CHAR can_move 1
03BF: set_player $PLAYER_CHAR ignored_by_everyone 0
08DA: remove_panel 510@
03E6: remove_text_box
fade 0 800
wait 800
fade 1 800
jump @start_game
///enable_widescreen 0
//jump @cleanup
wait 300
jump @set_Menu_3

:set_Menu_21

01B4: set_player $PLAYER_CHAR can_move 1
03BF: set_player $PLAYER_CHAR ignored_by_everyone 0
08DA: remove_panel 510@
03E6: remove_text_box
///enable_widescreen 0
fade 0 800
wait 800
fade 1 800
jump @start_game
end_thread




:start_game
if 
SET_LUIGI == 0
then

0A92: create_custom_thread "battle_maps\score_anywhere.cs"


end

if 
SET_LUIGI == 1
then
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_score_bomb.cs"


end
if 
SET_LUIGI == 2
then

0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"


  0A92: create_custom_thread "battle_maps\sa_score_bomb.cs"

end
if 
SET_LUIGI == 3
then
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"

 0A92: create_custom_thread "battle_maps\sa_score_bomb.cs"


end
if 
SET_LUIGI == 4
then
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"

  0A92: create_custom_thread "battle_maps\sa_score_bomb.cs"

end
if 
SET_LUIGI == 5
then
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"

//01EB: set_traffic_density_multiplier_to 0.5
//03DE: set_pedestrians_density_multiplier_to 0.5
  0A92: create_custom_thread "battle_maps\sa_score_bomb.cs"

end
if 
SET_LUIGI == 6
then
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_score_bomb.cs"

end
if 
SET_LUIGI == 7
then

//01EB: set_traffic_density_multiplier_to 0.0
//03DE: set_pedestrians_density_multiplier_to 0.0
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs" 
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs"
0A92: create_custom_thread "battle_maps\sa_luigi.cs" 
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_luigi_bomb.cs"
0A92: create_custom_thread "battle_maps\sa_score_bomb.cs"

end

if
SET_PEDS == 0
then
0395: clear_area 1 at 681.8004 -474.1063 15.5363 radius 8888.0
//0A92: create_custom_thread "battle_maps\cars.cs"
01EB: set_traffic_density_multiplier_to 1.0
03DE: set_pedestrians_density_multiplier_to 0.0
end

if
SET_PEDS == 1
then
0395: clear_area 1 at 681.8004 -474.1063 15.5363 radius 8888.0
//0A92: create_custom_thread "battle_maps\airport_cars.cs"
01EB: set_traffic_density_multiplier_to 1.0
03DE: set_pedestrians_density_multiplier_to 1.0

end
if
SET_PEDS == 2
then
0395: clear_area 1 at 681.8004 -474.1063 15.5363 radius 8888.0
//0A92: create_custom_thread "battle_maps\airport_cars.cs"
01EB: set_traffic_density_multiplier_to 1.0
03DE: set_pedestrians_density_multiplier_to 0.0
end
if
SET_PEDS == 4
then
0395: clear_area 1 at 681.8004 -474.1063 15.5363 radius 8888.0
01EB: set_traffic_density_multiplier_to 0.0
03DE: set_pedestrians_density_multiplier_to 1.0
end
if
SET_PEDS == 0
then
0395: clear_area 1 at 681.8004 -474.1063 15.5363 radius 8888.0

01EB: set_traffic_density_multiplier_to 0.0
03DE: set_pedestrians_density_multiplier_to 0.0
end
if
SET_LUIGI == 0
then
end
//camera.Restore_WithJumpCut()
//camera.SetBehindPlayer()
$Actor_Catalina = 0
$onmission = 1
//audiostream.Release($menu)
0A92: create_custom_thread "battle_maps\respawnP1_anywhere.cs"
0A92: create_custom_thread "battle_maps\respawnP2_anywhere.cs"
//0A92: create_custom_thread "battle_maps\score_anywhere.cs"



:main
wait 0
//0915: sync_weather_with_time_and_location_instantly

if 
//09E7:   player $PLAYER_CHAR not_frozen
0ADC:   test_cheat "exit"
then
$onmission = 0
0ACD: show_text_highpriority "~r~Exited." time 4000
//    0A8C: write_memory 9867623 size 4 value 0 virtual_protect 1                                                                                                            
//    0A8C: write_memory 9867624 size 4 value 0 virtual_protect 1  
01B7: release_weather
audiostream.Release($music)
01F0: set_max_wanted_level_to 6

mission_cleanup
end_thread

end
if
0ADC:   test_cheat "load"

then

0ACD: show_text_highpriority "~w~Refreshed." time 4000
$actor_sweet = 0
wait 100
$actor_sweet = 1
end
if 

0ADC:   test_cheat "reset"

then
:reset
$onmission = 0
wait 100
$onmission = 1
jump @setup
end
if
$Actor_Catalina == 1
then

jump @reset 
end
jump @main 

















